package com.zwz.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 资源-菜单
 * 2015年12月29日 下午8:48:01
 * @author zhangwanzhong 
 */
public class SysResource {
	private String id;// 主键ID
	private String name;// 名称
	private String url;// 地址
	@JsonProperty("iconCls")
	private String icon;// 图标
	@JsonProperty("_parentId")
	private String pid;// 父ID
	private String seq;// 排序
	private String resource_type;// 类型0:菜单1:按钮
	private String perimssion_type;// 权限类型
	@JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
	private Date create_time;// 创建时间
	@JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
	private Date update_time;// 修改时间
	
	private List<SysResource> sysResourceChild=new ArrayList<SysResource>();//子菜单
	
	private String state="closed";//默认折叠
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getSeq() {
		return seq;
	}
	public void setSeq(String seq) {
		this.seq = seq;
	}
	public String getResource_type() {
		return resource_type;
	}
	public void setResource_type(String resource_type) {
		this.resource_type = resource_type;
	}
	public String getPerimssion_type() {
		return perimssion_type;
	}
	public void setPerimssion_type(String perimssion_type) {
		this.perimssion_type = perimssion_type;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public List<SysResource> getSysResourceChild() {
		return sysResourceChild;
	}
	public void setSysResourceChild(List<SysResource> sysResourceChild) {
		this.sysResourceChild = sysResourceChild;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
}
